//
//  UIImage_Strectch.swift
//  MHSinaWeiBo
//
//  Created by a on 15/10/2.
//  Copyright © 2015年 icast. All rights reserved.
//

import UIKit

extension UIImage {
    func strectchWithImageName () ->UIImage {
        let oldImage = self
        
        let newImage = oldImage.stretchableImageWithLeftCapWidth(Int((oldImage.size.width)*0.5), topCapHeight: Int((oldImage.size.height)*0.5))
        
        return newImage
    }
}